<?php 

/*
* Components /com_contratos
* @link 	http://www.alanfernandes.com.br/componentes
* @license  Creatove Commons 
*/

//evitar acesso direto
defined('_JEXEC') or die ('Acesso Restrito');

Jimport('joomla.application.component.model');

class ContratoModelContrato extends JModel
{
	function pegaDb(){
	   $db =& JFactory::getDBO();
	   $query ='select *  FROM jos_contratos';
		$db->setQuery($query);
		$consulta = $db->loadResult();
		return  $consulta;
	}
	
	
}
?>
